package com.shroo8.footballblog.bo.api;

import java.util.ArrayList;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.shroo8.footballblog.dto.api.ArticleDto;
import com.shroo8.footballbloglib.dao.footballblogread.GetArticlesDao;

@Service(value="getArticlesBo")
public class GetArticlesBoImpl implements GetArticlesBo{
	
	@Resource(name="getArticlesDao")
	private GetArticlesDao getArticlesDao;	
	
	@Override
	public ArrayList<ArticleDto> getArticles(String authorType, int authorExternalId){
		return getArticlesDao.execute(authorType, authorExternalId);
	}
}
